//
//  MacroDefines.h
//  Azkar
//
//  Created by 王易 on 2018/8/24.
//  Copyright © 2018年 CPX. All rights reserved.
//

#ifndef MacroDefines_h
#define MacroDefines_h

//Color
#define Color(colorValue) [UIColor colorFromString:colorValue]
//图片
#define Image(imageName) [UIImage imageNamed:imageName]
// 字体
#define FontSize(size) [UIFont systemFontOfSize:size]

#define ICONIMGE Image(@"no_photo")

#define NORMALIMGE Image(@"place_holder1")

//screen
#define ScreenWidth [PhoneUtil screenWidth]
#define ScreenHeight [PhoneUtil screenHeight]

//loadNib
#define LoadNib(name) [[NSBundle mainBundle]loadNibNamed:name owner:nil options:nil].firstObject



#define RGBA(r,g,b,a)       [UIColor colorWithRed:(r)/255.f \
green:(g)/255.f \
blue:(b)/255.f \
alpha:(a)]

//Weak VS Strong
#define WeakSelf @weakify(self);
#define StrongSelf @strongify(self);


//AppLanguageChangedNotification 语言切换
#endif /* MacroDefines_h */
